package leetcode;

/**
 * @创建人 MBY381
 * @创建时间 2022/4/27 17:45
 * @描述 暂无
 */
public class Solution_jz024 {
    public ListNode reverseList(ListNode head) {
        ListNode pre=null;
        ListNode curr=head;
        while(curr!=null){
            ListNode next=curr.next;
            curr.next=pre;
            pre = curr;
            curr = next;
        }
        return pre;
    }
}
